package edu.spec.wfl.week08.class1.book.unit4.one;

public class Circle {
    private double Radius;

    public Circle(){
        Radius=0;
    }
    public Circle(double r){
        this.Radius=r;
    }
    public void setRadius(double Radius){
        this.Radius=Radius;
    }

    public double getArea(){
        double area=(3.14*Radius*Radius);
        return area;
    }
    public double getPerimeter(){
        return 3.14*2*Radius;
    }
    public void show(){
        System.out.println("圆的半径是:"+Radius+"\t圆的周长是:"+getPerimeter()+"\t圆的面积是:"+getArea());
    }
}
